import request from '@/utils/request'

// 查询表结构
export function Info(query) {
  return request({
    url: '/sqltable/info/' + query,
    method: 'get'
  })
}

//查询所有表
export function List() {
  return request({
    url: '/sqltable/list/',
    method: 'get'
  })
}

//当前sqlserver连接
export function Danqiansql() {
  return request({
    url: '/sqltable/danqiansql/',
    method: 'get'
  })
}

//切换sqlserver连接
export function Qiehuansql(data) {
  return request({
    url: '/sqltable/qiehuansql',
    method: 'post',
    data: data
  })
}